/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import javax.ejb.Stateless;
import javax.ejb.LocalBean;
import model.Converter;

/**
 *
 * @author Guillaume
 */
@Stateless
@LocalBean
public class ConverterFacade {
    private Converter converter; 
    
    
    public Converter createConverter(){
        converter = new Converter();
        return converter;
    }
    
    public void convert(Float amount,String fromCurrency, String toCurrency){ 
        converter.convert(amount,);
    }
    
    public Float convertedAmount(){
        return converter.getConvertAmount();
    }
    
}
